import request from '@/utils/request'

// 查询投资者适当性校验列表
export function listFundFileVerification(query) {
  return request({
    url: '/verification/fundFileVerification/list',
    method: 'get',
    params: query
  })
}

// 查询投资者适当性校验详细
export function getFundFileVerification(id) {
  return request({
    url: '/verification/fundFileVerification/' + id,
    method: 'get'
  })
}

// 保存投资者适当性校验
export function saveFundFileVerification(data) {
  return request({
    url: '/verification/fundFileVerification/save',
    method: 'post',
    data: data
  })
}

// 删除投资者适当性校验
export function delFundFileVerification(id) {
  return request({
    url: '/verification/fundFileVerification/' + id,
    method: 'delete'
  })
}

// 导出投资者适当性校验
export function exportFundFileVerification(query) {
  return request({
    url: '/verification/fundFileVerification/export',
    method: 'get',
    params: query
  })
}

// 重复校验
export function checkInvestorNature(investorNature, id) {
  return request({
    url: '/verification/fundFileVerification/checkInvestorNature/' + investorNature + '/' + id,
    method: 'get'
  })
}

// 根据投资者性质获取需要上传的文件
export function findFileListByInvestorNature(investor) {
  return request({
    url: '/verification/fundFileVerification/findFileListByInvestorNature',
    method: 'post',
    data: investor
  })
}
